﻿/*
    玩家类实现
 */

#include <iostream>
#include <cstring>
#include "pc.h"

using namespace std;

Player::Player(){}

Player::Player(string& name, string& from, unsigned short hp=6, int cruel=BLANK, int weapon=BLANK, int equitment=BLANK, int ab_status=BLANK, unsigned short _id=STUDENT)
{
    m_name=name;
    m_from=from;
    m_hp=hp;
    m_cruel=cruel;
    m_weapon=weapon;
    m_cruel=cruel;
    m_ab_status=ab_status;
    m_id=_id;
    //手牌初始化什么时候做,怎么做
}

Player::~Player(){}

void Player::upDate(string& name, unsigned short& id, bool& isself, string& from, int& x, int& y, int& map_rev, unsigned short& hp, unsigned short& cruel, int& weapon, int& equitment, int& ab_status, Card hand[7])
{

}

bool Player::Attack(Player &pc)
{
    cout<<"Attack!"<<endl;
}

void Player::MakeCommander(int& pcs)
{
    this->m_hp=6*pcs;
    this->m_id=COMMANDER;
}


























































